import java.util.Scanner;

public class Homework_603_11 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int[] a = new int[10];
		int num = 0;
		System.out.println("请输入十个整数：");

		for (int i = 0; i < a.length; i++) {
			a[i] = input.nextInt();
			num += a[i];
		}
		System.out.println("和为" + num);
	}
}
